package com.hyt.it.ogt.kq.service.bm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hyt.it.ogt.kq.service.bm.model.entity.OrderHistory;
import com.hyt.it.ogt.kq.service.bm.model.vo.CheckOrderList;
import com.hyt.it.ogt.kq.service.bm.model.vo.CheckOrderTotal;
import com.hyt.it.ogt.kq.service.bm.model.vo.CheckVo;
import com.hyt.model.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CheckOrderMapper extends BaseMapper<CheckOrderTotal> {

	IPage<CheckOrderTotal> checkOrderTotal(PageParam<CheckOrderTotal> pageParam,
			@Param("projectName") String projectName, @Param("officeId") String officeId);

	Integer getPayNums(@Param("projectId") String projectId);

	IPage<CheckOrderList> checkOrderAll(PageParam<CheckOrderList> pageParam, @Param("checkVo") CheckVo checkVo,
			@Param("permissionList") List<String> permissionList);

	IPage<CheckOrderList> checkOrderErrorList(PageParam<CheckOrderList> pageParam, @Param("checkVo") CheckVo checkVo,
			@Param("status") String status);

	void updateProject(@Param("status") Integer status, @Param("projectId") String project);

	int getErrorHistoryCount(@Param("projectId") String project);

	void insertOrderHistory(OrderHistory orderHistory);

	void deleteOrderHistory(@Param("bmOrderHistoryId") String bmOrderHistoryId);

	OrderHistory getHistoryById(@Param("id") String bmOrderHistoryId);
	
	OrderHistory getHistoryByOrderId(@Param("orderId") String orderId);

	void updateHistory(OrderHistory orderHistory);

	List<OrderHistory> getHistoryList(@Param("projectId") String projectId);

}
